from dbcParse_SignalsPbconfig import dbcParse_SignalsPbconfigGenerate
from dbcParse_MessageUnpack import dbcParse_MessageUnpackFileGenerate
from dbcParse_MessagePack import dbcParse_MessagePackFileGenerate


if __name__ == '__main__':
    dbc_ecu_name = 'ECU'
    dbc_file_name = "example.dbc"
    # dbc_ecu_name = 'ETAS'
    # dbc_file_name = "DA_IDCU_intel.dbc"
    # dbc_ecu_name = 'ETAS'
    # dbc_file_name = "S811_ADASCAN.dbc"
    dbcParse_SianglsPbconfigInstance = dbcParse_SignalsPbconfigGenerate()
    dbcParse_SianglsPbconfigInstance.create_pbcfg_files(dbc_file_name, dbc_ecu_name)

    dbcParse_MessageUnpackFileInstance = dbcParse_MessageUnpackFileGenerate()
    dbcParse_MessageUnpackFileInstance.create_messageunpack_files(dbc_file_name, dbc_ecu_name)

    dbcParse_MessagePackFileInstance = dbcParse_MessagePackFileGenerate()
    dbcParse_MessagePackFileInstance.create_messagepack_files(dbc_file_name, dbc_ecu_name)
